package com.dal.elasticsearch.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: spring-boot
 * @description:
 * @author: jian
 * @create: 2021-12-09 09:37
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
//@Document(indexName = "item", type = "goods", shards = 3, replicas = 1)
public class Goods {
    private Long id;//id通常是从mysql数据库中映射过来
    private String goodsName; //商品名称
    private String category;// 分类
    private String brand; // 品牌
    private Double price; // 价格
    private String images; // 图片地址
}
